/*
* @Author: sc
* @Date:   2019-01-10 11:25:53
* @Last Modified by:   sc
* @Last Modified time: 2019-01-20 14:44:20
*/
import { observable } from 'mobx';

class Todo{
    @observable content  = {};
    @observable finishClassName = 'not-finish';

    constructor(data) {
        if(data.status == 1){
            data.status = '已完成';
            this.finishClassName = 'finish';
        }else{
            data.status = '未完成';
            this.finishClassName = 'not-finish';
        }
        this.content = data;
    }

}

export default Todo;